package com.yami.shop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.bean.dto.MeetingDto;
import com.yami.shop.bean.model.Meeting;
import com.yami.shop.common.util.PageParam;

import java.util.List;

/**
 * @author lgh on 2019/03/27.
 */
public interface MeetingService extends IService<Meeting> {


    List<Meeting> getMeetingDtoList(Long shopId);

    MeetingDto getMeetingDtoByShopIdAndMeetingId(Long shopId, Long meetingId);

    void removeMeetingDtoCacheByMeetingId(Long meetingId);

    void removeMeetingListCacheByShopId(Long shopId);

    IPage<Meeting> page(PageParam<Meeting> page, Meeting meeting);

    int updateMeeting(Meeting meeting);

    int deleteMeeting(Long[] ids);

    void addMeeting(Meeting meeting);

}
